<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div class="app">
    <button v-show="index !== 0" @click="index--">上一张</button>
    <p><img :src="imgUrl[index]" alt=""></p>
    <button v-show="index != imgUrl.length - 1" @click="index++">下一张</button>
  </div>
  <script src="./vue.js"></script>
  <script>
    const app = new Vue({
      el: '.app',
      data: {
        imgUrl: [
          './imgs/10-01.png',
          './imgs/10-02.png',
          './imgs/11-00.gif',
          './imgs/11-01.gif',
          './imgs/11-02.gif',
          './imgs/11-03.gif',
          './imgs/11-04.png',
          './imgs/11-05.png',
        ],
        index: 0
      },
    })
  </script>
</body>

</html>